
import { createBrowserRouter } from "react-router-dom";
import { lazy } from "react";
const HomePage = lazy(()=>import('../pages/index'))
const router = createBrowserRouter([
    {
        path:'/',
        Component: lazy(()=>import('../pages/index')),
    },
    {

        path:'/login',
        Component : lazy(()=>import('../pages/login'))
    },
    {
        path:'/about',
        Component: lazy(()=>import('../pages/about')),
    },
    {
        path:'/news',
        Component: lazy(()=>import('../pages/news')),
    },
    {
        path:'/newsinfo',
        Component: lazy(()=>import('../pages/news_info')),
    }
])


export default router;